<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        $score=65;
        $cj1="";
        $cj2="";
        $cj3="";
        $cj4="";
        $cj5="";
        $g=(int)($score/10);
         switch ($g)
        {
        case 10:
             $cj1 = "<img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' />";
             break;
        case 9:
             $cj1 = "<img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' />";
             break;
        case 8:
             $cj2 = "<img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' />";
             break;
        case 7:
             $cj3 = "<img src='haha.gif' width='50' height='50' /><img src='haha.gif' width='50' height='50' />";
             break;
        case 6:
             $cj4 = "<img src='haha.gif' width='50' height='50' />";
             break;
        default:
             $cj5 = "<img src='cry.jpg' width='50' height='50' />";
            break;
        }
        
       ?>
        <table width="500" border="1">
  <tbody>
    <tr>
      <td width="100" align="center"><strong>成绩等级</strong></td>
      <td width="90" align="center"><?php echo $score; ?></td>
    </tr>
    <tr>
      <td align="center" height='50'>优秀</td>
      <td align="center"><?php echo $cj1; ?></td>
    </tr>
    <tr>
      <td align="center" height='50'>良好</td>
      <td align="center"><?php echo $cj2; ?></td>
    </tr>
    <tr>
      <td align="center" height='50'>中等</td>
      <td align="center"><?php echo $cj3; ?></td>
    </tr>
    <tr>
      <td align="center" height='50'>及格</td>
      <td align="center"><?php echo $cj4; ?></td>
    </tr>
    <tr>
      <td align="center" height='50'>不及格</td>
      <td align="center"><?php echo $cj5; ?></td>
    </tr>
  </tbody>
</table>

    </body>
</html>
